package com.subaiqiao.yunshiyuan.entrance.ysy.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.subaiqiao.yunshiyuan.basis.pojo.BasisPojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 曹朝禹
 * @since 2022-05-13
 */
@Getter
@Setter
@TableName("sys_config")
@ApiModel(value = "SysConfig对象", description = "")
public class SysConfig implements BasisPojo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("配置编号")
      @TableId(value = "sys_config_id", type = IdType.AUTO)
    private Integer sysConfigId;

    @ApiModelProperty("配置名称")
    private String sysConfigName;

    @ApiModelProperty("配置内容")
    private String sysConfigContent;

    @ApiModelProperty("状态")
    private Integer sysConfigStatus;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDatetime;

    @ApiModelProperty("修改时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDatetime;

    @JsonIgnore // 忽略掉这个字段，不进行展示
    @ApiModelProperty("乐观锁")
    @Version
    private Integer version;


}
